home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1997 / MacHack 1997.toast / Hacks / Hacks ’97 / Warrior’s Progress / source code / Source / Libraries / Drawing / QDPatchBlock.h < prev    next >
Encoding:
Text File  |  1997-06-28  |  817 b   |  47 lines  |  [TEXT/CWIE]

  1. // QDPatchBlock.h
  2.  
  3. #ifndef QDPatchBlock_h
  4. #define QDPatchBlock_h
  5.  
  6. #ifndef A5_h
  7. #include "A5.h"
  8. #endif
  9. #ifndef ConstData_h
  10. #include "ConstData.h"
  11. #endif
  12.  
  13. class GrafPortObject;
  14.  
  15. class QDPatchBlock: public QDProcs
  16.   {
  17.     private:
  18.         A5 a5;
  19.         A5 portA5;
  20.         
  21.         GrafPortObject& port;
  22.         
  23.         static const QDProcs& MakeStandard();
  24.         static const QDProcs& Standard();
  25.     
  26.         // not implemented:
  27.             QDPatchBlock( const QDPatchBlock& );
  28.             void operator=( const QDPatchBlock& );
  29.         
  30.         static pascal void MyTextProc( int16, int8 *, Point, Point );
  31.         
  32.     public:
  33.         QDPatchBlock( GrafPortObject& );
  34.         ~QDPatchBlock();
  35.  
  36.         GrafPortObject& Port() const    { return port; }
  37.         
  38.         void ActivateTextPatch();
  39.         void DeactivateTextPatch();
  40.  
  41.         virtual void DrawText( ConstData text,
  42.                                       Point numerator,
  43.                                       Point denominator );
  44.   };
  45.  
  46. #endif
  47.